package org.yray.sip.handler.flow;


import lombok.extern.slf4j.Slf4j;
import org.yray.sip.base.SipMsg;
import org.yray.sip.handler.MessageHandler;
import org.yray.sip.server.SipServerContext;


@Slf4j
public class OK200Handler extends MessageHandler {



    @Override
    public String[] handler(SipMsg sipMsg, SipServerContext ssc) {
       MessageHandler messageHandler=okHandlerMap.get(sipMsg.getOkType());
       log.info("OK200Handler use {}",sipMsg.getOkType());
       return messageHandler.handler(sipMsg,ssc);

    }
}
